/**
 * Created by Administrator on 2017-07-25.
 */
var skc_project_course_info = new Object();

skc_project_course_info.init = function(){

    // 项目是否进行中的权限处理
    skc_project_course_info.initProjectCourseInfo($("#project_basicId").val());

}

skc_project_course_info.initProjectCourseInfo = function (project_id) {
    $.ajax({
        url: appPath + "/project/skc/initProjectCourseInfo",
        data: {
            'project_id': project_id
        },
        async: false,
        type: "post",
        dataType:"json",
        success:function(data){
            var code = data.code;
            if(10000 != code){
                var message = skc_project_course_info.alertMessage("数据加载中，请稍等...");
                layer.open({
                    type:1,
                    title: false, // 不显示标题栏
                    closeBtn: false,
                    area: "400px",
                    shade: 0.3,
                    id: "layer-exam-paper-fail", // 设置id, 防止重复弹出
                    resize: false,
                    btn:["确定"],
                    btnAlign: "c",
                    moveType: 1,
                    content: message,
                    btn1: function(index) {
                        layer.close(index);
                        student_enter.tongji();
                        student_enter.initTable();

                    }
                });
            }
        }
    })
}

skc_project_course_info.alertMessage = function (message) {
    var url = "<div style='padding:50px;line-height:22px;background-color:#393D49;color:#fff;font-weight:300;font-size: 15px;'>";
    url += message;
    return url;
};

